package com.iris.live.services.data.models;

import com.fasterxml.jackson.annotation.JsonProperty;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Date;

/**
 *
 */
@SuppressWarnings("JpaDataSourceORMInspection")
@Entity
@Table(name = "lsh经销商表", schema = "live", catalog = "")
    public class Lsh经销商表Model {
    private String bmbs;
    private String lsh;
    private String 经销商名;
    private String 经销商名en;
    private String 经销商;
    private String 经销商en;
    private String 省份;
    private String 省份en;
    private String 城市;
    private String 城市en;
    private String 大区;
    private String 大区en;
    private String 小区;
    private String 小区en;
    private String cta;
    private String ctaEn;
    private String 经销商全称;
    private String 经销商全称en;
    private String 经销商地址;
    private String 经销商地址en;
    private String 经销商电话;
    private String 经销商状态;
    private String 经销商类型;
    private String 经销商功能;
    private String 功能类型;
    private String 销售能力;
    private Date 开业日期;
    private Date 生效日期;
    private String ncCode;
    private String dmsCode;
    private String salesCode;
    private String dealerCode;
    private String imsCode;
    private String 是否测试;
    private String 更新账号;
    private Timestamp 更新时间;
    private String projectCode;
    private String dbId;
    private String groupId;

    @Id
    @Column(name = "许可_BMBS") @JsonProperty("许可_BMBS")
    public String getBmbs() {
        return bmbs;
    }

    public void setBmbs(String bmbs) {
        this.bmbs = bmbs;
    }

    @Basic
    @Column(name = "许可_LSH") @JsonProperty("许可_LSH")
    public String getLsh() {
        return lsh;
    }

    public void setLsh(String lsh) {
        this.lsh = lsh;
    }

    @Basic
    @Column(name = "经销商名")
    public String get经销商名() {
        return 经销商名;
    }

    public void set经销商名(String 经销商名) {
        this.经销商名 = 经销商名;
    }

    @Basic
    @Column(name = "经销商名_EN") @JsonProperty("经销商名_EN")
    public String get经销商名en() {
        return 经销商名en;
    }

    public void set经销商名en(String 经销商名en) {
        this.经销商名en = 经销商名en;
    }

    @Basic
    @Column(name = "经销商")
    public String get经销商() {
        return 经销商;
    }

    public void set经销商(String 经销商) {
        this.经销商 = 经销商;
    }

    @Basic
    @Column(name = "经销商_EN") @JsonProperty("经销商_EN")
    public String get经销商en() {
        return 经销商en;
    }

    public void set经销商en(String 经销商en) {
        this.经销商en = 经销商en;
    }

    @Basic
    @Column(name = "省份")
    public String get省份() {
        return 省份;
    }

    public void set省份(String 省份) {
        this.省份 = 省份;
    }

    @Basic
    @Column(name = "省份_EN") @JsonProperty("省份_EN")
    public String get省份en() {
        return 省份en;
    }

    public void set省份en(String 省份en) {
        this.省份en = 省份en;
    }

    @Basic
    @Column(name = "城市")
    public String get城市() {
        return 城市;
    }

    public void set城市(String 城市) {
        this.城市 = 城市;
    }

    @Basic
    @Column(name = "城市_EN") @JsonProperty("城市_EN")
    public String get城市en() {
        return 城市en;
    }

    public void set城市en(String 城市en) {
        this.城市en = 城市en;
    }

    @Basic
    @Column(name = "大区")
    public String get大区() {
        return 大区;
    }

    public void set大区(String 大区) {
        this.大区 = 大区;
    }

    @Basic
    @Column(name = "大区_EN") @JsonProperty("大区_EN")
    public String get大区en() {
        return 大区en;
    }

    public void set大区en(String 大区en) {
        this.大区en = 大区en;
    }

    @Basic
    @Column(name = "小区")
    public String get小区() {
        return 小区;
    }

    public void set小区(String 小区) {
        this.小区 = 小区;
    }

    @Basic
    @Column(name = "小区_EN") @JsonProperty("小区_EN")
    public String get小区en() {
        return 小区en;
    }

    public void set小区en(String 小区en) {
        this.小区en = 小区en;
    }

    @Basic
    @Column(name = "CTA") @JsonProperty("CTA")
    public String getCta() {
        return cta;
    }

    public void setCta(String cta) {
        this.cta = cta;
    }

    @Basic
    @Column(name = "CTA_EN") @JsonProperty("CTA_EN")
    public String getCtaEn() {
        return ctaEn;
    }

    public void setCtaEn(String ctaEn) {
        this.ctaEn = ctaEn;
    }

    @Basic
    @Column(name = "经销商全称")
    public String get经销商全称() {
        return 经销商全称;
    }

    public void set经销商全称(String 经销商全称) {
        this.经销商全称 = 经销商全称;
    }

    @Basic
    @Column(name = "经销商全称_EN") @JsonProperty("经销商全称_EN")
    public String get经销商全称en() {
        return 经销商全称en;
    }

    public void set经销商全称en(String 经销商全称en) {
        this.经销商全称en = 经销商全称en;
    }

    @Basic
    @Column(name = "经销商地址")
    public String get经销商地址() {
        return 经销商地址;
    }

    public void set经销商地址(String 经销商地址) {
        this.经销商地址 = 经销商地址;
    }

    @Basic
    @Column(name = "经销商地址_EN") @JsonProperty("经销商地址_EN")
    public String get经销商地址en() {
        return 经销商地址en;
    }

    public void set经销商地址en(String 经销商地址en) {
        this.经销商地址en = 经销商地址en;
    }

    @Basic
    @Column(name = "经销商电话")
    public String get经销商电话() {
        return 经销商电话;
    }

    public void set经销商电话(String 经销商电话) {
        this.经销商电话 = 经销商电话;
    }

    @Basic
    @Column(name = "经销商状态")
    public String get经销商状态() {
        return 经销商状态;
    }

    public void set经销商状态(String 经销商状态) {
        this.经销商状态 = 经销商状态;
    }

    @Basic
    @Column(name = "经销商类型")
    public String get经销商类型() {
        return 经销商类型;
    }

    public void set经销商类型(String 经销商类型) {
        this.经销商类型 = 经销商类型;
    }

    @Basic
    @Column(name = "经销商功能")
    public String get经销商功能() {
        return 经销商功能;
    }

    public void set经销商功能(String 经销商功能) {
        this.经销商功能 = 经销商功能;
    }

    @Basic
    @Column(name = "功能类型")
    public String get功能类型() {
        return 功能类型;
    }

    public void set功能类型(String 功能类型) {
        this.功能类型 = 功能类型;
    }

    @Basic
    @Column(name = "销售能力")
    public String get销售能力() {
        return 销售能力;
    }

    public void set销售能力(String 销售能力) {
        this.销售能力 = 销售能力;
    }

    @Basic
    @Column(name = "开业日期")
    public Date get开业日期() {
        return 开业日期;
    }

    public void set开业日期(Date 开业日期) {
        this.开业日期 = 开业日期;
    }

    @Basic
    @Column(name = "生效日期")
    public Date get生效日期() {
        return 生效日期;
    }

    public void set生效日期(Date 生效日期) {
        this.生效日期 = 生效日期;
    }

    @Basic
    @Column(name = "NCCode") @JsonProperty("NCCode")
    public String getNcCode() {
        return ncCode;
    }

    public void setNcCode(String ncCode) {
        this.ncCode = ncCode;
    }

    @Basic
    @Column(name = "DMSCode") @JsonProperty("DMSCode")
    public String getDmsCode() {
        return dmsCode;
    }

    public void setDmsCode(String dmsCode) {
        this.dmsCode = dmsCode;
    }

    @Basic
    @Column(name = "SalesCode") @JsonProperty("SalesCode")
    public String getSalesCode() {
        return salesCode;
    }

    public void setSalesCode(String salesCode) {
        this.salesCode = salesCode;
    }

    @Basic
    @Column(name = "DealerCode") @JsonProperty("DealerCode")
    public String getDealerCode() {
        return dealerCode;
    }

    public void setDealerCode(String dealerCode) {
        this.dealerCode = dealerCode;
    }

    @Basic
    @Column(name = "IMSCode") @JsonProperty("IMSCode")
    public String getImsCode() {
        return imsCode;
    }

    public void setImsCode(String imsCode) {
        this.imsCode = imsCode;
    }

    @Basic
    @Column(name = "是否测试")
    public String get是否测试() {
        return 是否测试;
    }

    public void set是否测试(String 是否测试) {
        this.是否测试 = 是否测试;
    }

    @Basic
    @Column(name = "更新账号")
    public String get更新账号() {
        return 更新账号;
    }

    public void set更新账号(String 更新账号) {
        this.更新账号 = 更新账号;
    }

    @Basic
    @Column(name = "更新时间")
    public Timestamp get更新时间() {
        return 更新时间;
    }

    public void set更新时间(Timestamp 更新时间) {
        this.更新时间 = 更新时间;
    }

    @PrePersist
    @PreUpdate
    public void onPreUpdate() {
        this.set更新时间(new Timestamp(System.currentTimeMillis()));
    }

    @Basic
    @Column(name = "DB_ID")
    public String getDbId() {
        return dbId;
    }

    public void setDbId(String dbId) {
        this.dbId = dbId;
    }

    @Basic
    @Column(name = "GROUP_ID")
    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Lsh经销商表Model that = (Lsh经销商表Model) o;

        if (bmbs != null ? !bmbs.equals(that.bmbs) : that.bmbs != null) return false;
        if (lsh != null ? !lsh.equals(that.lsh) : that.lsh != null) return false;
        if (经销商名 != null ? !经销商名.equals(that.经销商名) : that.经销商名 != null) return false;
        if (经销商名en != null ? !经销商名en.equals(that.经销商名en) : that.经销商名en != null) return false;
        if (经销商 != null ? !经销商.equals(that.经销商) : that.经销商 != null) return false;
        if (经销商en != null ? !经销商en.equals(that.经销商en) : that.经销商en != null) return false;
        if (省份 != null ? !省份.equals(that.省份) : that.省份 != null) return false;
        if (省份en != null ? !省份en.equals(that.省份en) : that.省份en != null) return false;
        if (城市 != null ? !城市.equals(that.城市) : that.城市 != null) return false;
        if (城市en != null ? !城市en.equals(that.城市en) : that.城市en != null) return false;
        if (大区 != null ? !大区.equals(that.大区) : that.大区 != null) return false;
        if (大区en != null ? !大区en.equals(that.大区en) : that.大区en != null) return false;
        if (小区 != null ? !小区.equals(that.小区) : that.小区 != null) return false;
        if (小区en != null ? !小区en.equals(that.小区en) : that.小区en != null) return false;
        if (cta != null ? !cta.equals(that.cta) : that.cta != null) return false;
        if (ctaEn != null ? !ctaEn.equals(that.ctaEn) : that.ctaEn != null) return false;
        if (经销商全称 != null ? !经销商全称.equals(that.经销商全称) : that.经销商全称 != null) return false;
        if (经销商全称en != null ? !经销商全称en.equals(that.经销商全称en) : that.经销商全称en != null) return false;
        if (经销商地址 != null ? !经销商地址.equals(that.经销商地址) : that.经销商地址 != null) return false;
        if (经销商地址en != null ? !经销商地址en.equals(that.经销商地址en) : that.经销商地址en != null) return false;
        if (经销商电话 != null ? !经销商电话.equals(that.经销商电话) : that.经销商电话 != null) return false;
        if (经销商状态 != null ? !经销商状态.equals(that.经销商状态) : that.经销商状态 != null) return false;
        if (经销商类型 != null ? !经销商类型.equals(that.经销商类型) : that.经销商类型 != null) return false;
        if (经销商功能 != null ? !经销商功能.equals(that.经销商功能) : that.经销商功能 != null) return false;
        if (功能类型 != null ? !功能类型.equals(that.功能类型) : that.功能类型 != null) return false;
        if (销售能力 != null ? !销售能力.equals(that.销售能力) : that.销售能力 != null) return false;
        if (开业日期 != null ? !开业日期.equals(that.开业日期) : that.开业日期 != null) return false;
        if (生效日期 != null ? !生效日期.equals(that.生效日期) : that.生效日期 != null) return false;
        if (ncCode != null ? !ncCode.equals(that.ncCode) : that.ncCode != null) return false;
        if (dmsCode != null ? !dmsCode.equals(that.dmsCode) : that.dmsCode != null) return false;
        if (salesCode != null ? !salesCode.equals(that.salesCode) : that.salesCode != null) return false;
        if (dealerCode != null ? !dealerCode.equals(that.dealerCode) : that.dealerCode != null) return false;
        if (imsCode != null ? !imsCode.equals(that.imsCode) : that.imsCode != null) return false;
        if (是否测试 != null ? !是否测试.equals(that.是否测试) : that.是否测试 != null) return false;
        if (更新账号 != null ? !更新账号.equals(that.更新账号) : that.更新账号 != null) return false;
        if (更新时间 != null ? !更新时间.equals(that.更新时间) : that.更新时间 != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = bmbs != null ? bmbs.hashCode() : 0;
        result = 31 * result + (lsh != null ? lsh.hashCode() : 0);
        result = 31 * result + (经销商名 != null ? 经销商名.hashCode() : 0);
        result = 31 * result + (经销商名en != null ? 经销商名en.hashCode() : 0);
        result = 31 * result + (经销商 != null ? 经销商.hashCode() : 0);
        result = 31 * result + (经销商en != null ? 经销商en.hashCode() : 0);
        result = 31 * result + (省份 != null ? 省份.hashCode() : 0);
        result = 31 * result + (省份en != null ? 省份en.hashCode() : 0);
        result = 31 * result + (城市 != null ? 城市.hashCode() : 0);
        result = 31 * result + (城市en != null ? 城市en.hashCode() : 0);
        result = 31 * result + (大区 != null ? 大区.hashCode() : 0);
        result = 31 * result + (大区en != null ? 大区en.hashCode() : 0);
        result = 31 * result + (小区 != null ? 小区.hashCode() : 0);
        result = 31 * result + (小区en != null ? 小区en.hashCode() : 0);
        result = 31 * result + (cta != null ? cta.hashCode() : 0);
        result = 31 * result + (ctaEn != null ? ctaEn.hashCode() : 0);
        result = 31 * result + (经销商全称 != null ? 经销商全称.hashCode() : 0);
        result = 31 * result + (经销商全称en != null ? 经销商全称en.hashCode() : 0);
        result = 31 * result + (经销商地址 != null ? 经销商地址.hashCode() : 0);
        result = 31 * result + (经销商地址en != null ? 经销商地址en.hashCode() : 0);
        result = 31 * result + (经销商电话 != null ? 经销商电话.hashCode() : 0);
        result = 31 * result + (经销商状态 != null ? 经销商状态.hashCode() : 0);
        result = 31 * result + (经销商类型 != null ? 经销商类型.hashCode() : 0);
        result = 31 * result + (经销商功能 != null ? 经销商功能.hashCode() : 0);
        result = 31 * result + (功能类型 != null ? 功能类型.hashCode() : 0);
        result = 31 * result + (销售能力 != null ? 销售能力.hashCode() : 0);
        result = 31 * result + (开业日期 != null ? 开业日期.hashCode() : 0);
        result = 31 * result + (生效日期 != null ? 生效日期.hashCode() : 0);
        result = 31 * result + (ncCode != null ? ncCode.hashCode() : 0);
        result = 31 * result + (dmsCode != null ? dmsCode.hashCode() : 0);
        result = 31 * result + (salesCode != null ? salesCode.hashCode() : 0);
        result = 31 * result + (dealerCode != null ? dealerCode.hashCode() : 0);
        result = 31 * result + (imsCode != null ? imsCode.hashCode() : 0);
        result = 31 * result + (是否测试 != null ? 是否测试.hashCode() : 0);
        result = 31 * result + (更新账号 != null ? 更新账号.hashCode() : 0);
        result = 31 * result + (更新时间 != null ? 更新时间.hashCode() : 0);
        return result;
    }

    @Basic
    @Column(name = "ProjectCode")
    public String getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }
}
